package processes;

import resources.ResPrimitives;

/**
 *
 * @author Ramunas
 */
public class Loader extends Process{
    public Loader(){
        this.setName("Loader");
        this.setId(ProcPrimitives.getUniqueId());
        this.setProgress("0");
        this.setState("Pasiruoses");
        ProcPrimitives.addReady(this);
    }
    
    @Override
    public void go() {
        ResPrimitives.requestResource(ResPrimitives.findResource("kazkas"), this);
    }
    
    public final void step1(){
        //blokavimasis laukiant "Paketas" resurso
    }
    
    public final void step2(){
        //blokavimasis laukiant "Kanalu irenginys" resurso
    }
    
    public final void step3(){
        //informacijos perkelimas
    }
    
    public final void step4(){
        //atlaisvinamas "Kanalu irenginys"
    }
    
    public final void step5(){
        //sukuriamas "Perkelta" resursas
    }
}
